-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[fix][ml] Avoid NPE when getCurrentLedger() returns null #24058
[fix][ml] Avoid NPE when getCurrentLedger() returns null #24058
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am considering why managedLedger.currentLedger
will be null
, could you explain the test's name?
@poorbarcode In branch-3.0, there are at least 2 tests where this can be seen in the output. |
It seems that |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #24058 +/- ##
============================================
+ Coverage 73.57% 74.19% +0.62%
+ Complexity 32624 32405 -219
============================================
Files 1877 1861 -16
Lines 139502 144210 +4708
Branches 15299 16433 +1134
============================================
+ Hits 102638 107003 +4365
+ Misses 28908 28748 -160
- Partials 7956 8459 +503
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Closing this PR since @poorbarcode will create a new PR addressing the root cause. |
Motivation
In branch-3.0, tests are failing with logs about NPEs such as
This is due to #23931 changes.
Modifications
Handle the case when getCurrentLedger() returns null
Documentation
doc
doc-required
doc-not-needed
doc-complete